import { rankingStore } from "../../store/index"


Page({
    data: {
        recommendSongs: []
    },
    onLoad() {
        rankingStore.onState('newRanking', newRanking => {
            this.setData({ recommendSongs: newRanking.tracks })
        })
    }
})